package com.example.spring.demo.service;

import com.example.spring.demo.common.model.req.MessageDTO;
import com.example.spring.demo.entity.Message;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/12/29 10:41
 **/
public interface MessageService {
    Message getMessageById(String id);

    Message getMessageByName(String name);

    void saveMessage(MessageDTO messageDTO);
    void saveMessage(Message message);

    /*
    添加商品时保存的消息
     */
    void saveUserAddGoods(Integer userId, String goodsName);

    /*
    删除商品时记录消息
     */
    void saveUserDelGoods(Integer userId, Long goodsId);
}
